/**
 * @author 谭
 * 用户后端参数验证
 */
"use strict";
const Joi = require('joi');


/*
    用户注册验证
 */

exports.regUserRegister = {
    body: {
        accounts: Joi.string().required(),
        password: Joi.string().required(),
        school: Joi.string().default('湖南信息学院').required(),
        sex: Joi.number().default(0).required(),
        class: Joi.string().required()
    },
}


/*
    用户登陆验证
 */

exports.regUserLogin = {
    body: {
        accounts: Joi.string().required(),
        password: Joi.string().required()
    },
}
